<core:SET width='200'>
<core:SET users="users">
<core:SET photo_no="1">
<core:SET title="Subscribers users accounts management">
<core:WRAP file="/adm/adm.layout.html" placeholder="Content">

<core:include file="/adm/inc/inc.adm.tabs.html">

<h1 align="center"> </h1>

<form id="UserForm" name="UserForm" method="post" action="" runat="server">
<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>
	<hr>
  <table width="100%" border="0" align="center" cellspacing="1" cellpadding="2">
    <colgroup>
        <col id="firstname">
        <col id="lastname">
        <col id="username">
        <col id="email">
        <col id="reg_date">
        <col id="siteName">
        <col id="status">
        <col id="action">
    </colgroup>
    <tr align="left">
    	<td colspan="4" class="whiteheader">
    		Manage subscriber users (Active, Nonactive, Cancelled): user -
            	<core:default for="user_id"> &lt; None &gt;
            	</core:default>
            	<core:optional for="user_id"> {$login} ({$user_id}) &nbsp;
            	</core:optional>
    	</td>

<!--<core:default for="user_id"> -->
<list:LIST id='List'>
        <td colspan="4" class="whiteheader_right" align="right">
            <page:navigator id="pagenav" items="10">
				Page: {$PageNumber} of {$TotalPages}
    			<page:first>First</page:first>
    			<page:prev>Prev</page:prev>
    			<page:list>
        			<page:number>
        			<page:elipses>...</page:elipses>
        			<page:separator> </page:separator>
    			</page:list>
    			<page:next>Next</page:next> <page:last>Last</page:last>
			</page:navigator>
    	</td>
     </tr>

    <tr class="header">
        <th>First name</th>
        <th>Last name</th>
        <th>Username</th>
        <th>Email</th>
        <th>Reg. Date</th>
        <th>Reg. Site</th>
        <th>Status</th>
        <th> &nbsp; </th>
    </tr>
    <list:ITEM>
      <tr class="{$Parity}">
        <td>{$firstname}</td>
        <td>{$lastname}</td>
        <td>{$login}</td>
        <td>{$email}</td>
        <td>{$reg_date}</td>
        <td>{$siteName}</td>
        <td>
        	<core:optional for="active_show"> Active
        	</core:optional>
            <core:default for="active_show"> Deactivated
        	</core:default>
        </td>


        <td class="left">
        	<html:link url="/delete" param="user_id">Delete</html:link>
        	<html:link url="/edit" param="user_id">Edit</html:link>
            <core:optional for="active_show">
             	<html:link url="/deactivate" param="user_id">Deactivate</html:link>
        	</core:optional>
        	<core:default for="active_show">
        		<html:link url="/activate" param="user_id">Activate</html:link>
            </core:default>
            <html:link url="/subscriptions" param="user_id">Subscriptions ({$number_subscriptions})</html:link>
        </td>
      </tr>
    </list:ITEM>
    <tr> <td colspan="8" class="whiteheader"> &nbsp; </td> </tr>
  </table>
</list:LIST>
<!--</core:default>   -->

<hr>
<table width="100%" border="1" align="center" cellspacing="2" cellpadding="3">
<core:include file="/common/users/inc.user.page.html">

<tr>
      <td>&nbsp;</td>
      <td class="form_field">
      		<!--
      		<core:default for="user_id">
      			<input type="submit" name="create" value="Create" runat="server">
            </core:default>  -->
            <core:optional for="user_id">
      			<input type="submit" name="save" value="Save" runat="server">
                <!--<input type="submit" name="delete" value="Delete" runat="server">-->
                <core:default for="active_show">
                	<input type="submit" name="activate" value="Activate" runat="server">
                </core:default>
                <core:optional for="active_show">
                	<input type="submit" name="deactivate" value="Deactivate" runat="server">
                </core:optional>
                <input type="submit" name="users" value="Back to users" runat="server">
            </core:optional>
            <input type="submit" name="clean" value="Clean" runat="server">
      </td>
</tr>

</table>
<hr>

</form>